from django.db import models

# Create your models here.
class Message(models.Model):
    content = models.TextField(max_length=1024)
    author = models.CharField(default='Anonymous',max_length=30)
    time = models.DateTimeField(auto_now_add = True)
    parent_message = models.ForeignKey('self',null=True)

    def __unicode__(self):
        return self.content